package com.igeek.javase.ch02;
import java.util.Scanner;
import java.util.Random;//生成伪随机数
/*
 *@author wangpeng
 *2023/7/11 19:07
 *@description TODO
 */
public class ForTest3 {
    /**
     A
     BBB
     CCCCC
     DDDDDDD
     EEEEEEEEE
     */
        public static void main(String[] args){
            String[] mychar = {"A","B","C","D","E"};
            int len= mychar.length;
            for(int i=1;i<=len;i++){
                for(int j=i; j<len;j++){
                    System.out.print(" ");
                }
                for(int j=1; j<=i*2-1;j++){
                    System.out.print(mychar[i-1]);
                }
                System.out.println();
            }
        }
}


